﻿<Activity mc:Ignorable="sap sap2010 sads" x:Class="UseTemplateFactory.Workflow1" sap2010:ExpressionActivityEditor.ExpressionActivityEditor="C#" sap2010:WorkflowViewState.IdRef="UseTemplateFactory.Workflow1_1"
 xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
 xmlns:local="clr-namespace:UseTemplateFactory.Activities"
 xmlns:local1="clr-namespace:UseTemplateFactory.Extensions"
 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 xmlns:mca="clr-namespace:Microsoft.CSharp.Activities;assembly=System.Activities"
 xmlns:s="clr-namespace:System;assembly=mscorlib"
 xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger"
 xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation"
 xmlns:sap2010="http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation"
 xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib"
 xmlns:sco="clr-namespace:System.Collections.ObjectModel;assembly=mscorlib"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <TextExpression.NamespacesForImplementation>
    <sco:Collection x:TypeArguments="x:String">
      <x:String>System</x:String>
      <x:String>System.Collections.Generic</x:String>
      <x:String>System.Data</x:String>
      <x:String>System.Linq</x:String>
      <x:String>System.Text</x:String>
    </sco:Collection>
  </TextExpression.NamespacesForImplementation>
  <TextExpression.ReferencesForImplementation>
    <sco:Collection x:TypeArguments="AssemblyReference">
      <AssemblyReference>Microsoft.CSharp</AssemblyReference>
      <AssemblyReference>System</AssemblyReference>
      <AssemblyReference>System.Activities</AssemblyReference>
      <AssemblyReference>System.Core</AssemblyReference>
      <AssemblyReference>System.Data</AssemblyReference>
      <AssemblyReference>System.Runtime.Serialization</AssemblyReference>
      <AssemblyReference>System.ServiceModel</AssemblyReference>
      <AssemblyReference>System.ServiceModel.Activities</AssemblyReference>
      <AssemblyReference>System.Xaml</AssemblyReference>
      <AssemblyReference>System.Xml</AssemblyReference>
      <AssemblyReference>System.Xml.Linq</AssemblyReference>
      <AssemblyReference>System.Activities.Presentation</AssemblyReference>
      <AssemblyReference>PresentationFramework</AssemblyReference>
      <AssemblyReference>PresentationCore</AssemblyReference>
      <AssemblyReference>WindowsBase</AssemblyReference>
      <AssemblyReference>mscorlib</AssemblyReference>
      <AssemblyReference>UseTemplateFactory</AssemblyReference>
    </sco:Collection>
  </TextExpression.ReferencesForImplementation>
  <Sequence DisplayName="Root" sap2010:WorkflowViewState.IdRef="Sequence_2">
    <Sequence.Variables>
      <Variable x:TypeArguments="s:Int32[]" Name="variables">
        <Variable.Default>
          <mca:CSharpValue x:TypeArguments="s:Int32[]">new []{ 1,2,3,4}</mca:CSharpValue>
        </Variable.Default>
      </Variable>
    </Sequence.Variables>
    <TryCatch sap2010:WorkflowViewState.IdRef="TryCatch_1">
      <TryCatch.Try>
        <ParallelForEach x:TypeArguments="x:Int32" sap2010:WorkflowViewState.IdRef="ParallelForEach`1_1">
          <ParallelForEach.Values>
            <InArgument x:TypeArguments="scg:IEnumerable(x:Int32)">
              <mca:CSharpValue x:TypeArguments="scg:IEnumerable(x:Int32)">variables</mca:CSharpValue>
            </InArgument>
          </ParallelForEach.Values>
          <ActivityAction x:TypeArguments="x:Int32">
            <ActivityAction.Argument>
              <DelegateInArgument x:TypeArguments="x:Int32" Name="item" />
            </ActivityAction.Argument>
            <Sequence sap2010:WorkflowViewState.IdRef="Sequence_1">
              <WriteLine sap2010:WorkflowViewState.IdRef="WriteLine_2">
                <InArgument x:TypeArguments="x:String">
                  <mca:CSharpValue x:TypeArguments="x:String">"before " + item.ToString()</mca:CSharpValue>
                </InArgument>
              </WriteLine>
              <local:Break sap2010:WorkflowViewState.IdRef="Break_1" />
              <WriteLine sap2010:WorkflowViewState.IdRef="WriteLine_3" Text="after" />
            </Sequence>
          </ActivityAction>
        </ParallelForEach>
      </TryCatch.Try>
      <TryCatch.Catches>
        <Catch x:TypeArguments="local1:BreackException" sap2010:WorkflowViewState.IdRef="Catch`1_1" />
      </TryCatch.Catches>
    </TryCatch>
    <WriteLine sap2010:WorkflowViewState.IdRef="WriteLine_1" Text="end" />
    <sads:DebugSymbol.Symbol>d3FEOlxQcm9qZXRzXEplcmVteUplYW5zb25cRGVtb3NcV0Y0LjVcMDMgYWN0aXZpdGllcyBjdXN0b21cMDMgVXNlVGVtcGxhdGVGYWN0b3J5XFVzZVRlbXBsYXRlRmFjdG9yeVxXb3JrZmxvdzEueGFtbA0sA1IOAgEBMAswWgIBAjQFTxACAQZQBVBLAgEENglKGwIBB1BDUEgCAQU5DzlmAgEQQA1IGAIBCEEPRRsCAQxGD0ZIAgELRw9HVwIBCUMTQ2wCAQ1HTUdUAgEK</sads:DebugSymbol.Symbol>
  </Sequence>
  <sap2010:WorkflowViewState.ViewStateManager>
    <sap2010:ViewStateManager>
      <sap2010:ViewStateData Id="WriteLine_2" sap:VirtualizedContainerService.HintSize="211,61" />
      <sap2010:ViewStateData Id="Break_1" sap:VirtualizedContainerService.HintSize="211,22" />
      <sap2010:ViewStateData Id="WriteLine_3" sap:VirtualizedContainerService.HintSize="211,62" />
      <sap2010:ViewStateData Id="Sequence_1" sap:VirtualizedContainerService.HintSize="233,349">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="ParallelForEach`1_1" sap:VirtualizedContainerService.HintSize="287,499" />
      <sap2010:ViewStateData Id="Catch`1_1" sap:VirtualizedContainerService.HintSize="404,21">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="TryCatch_1" sap:VirtualizedContainerService.HintSize="418,726" />
      <sap2010:ViewStateData Id="WriteLine_1" sap:VirtualizedContainerService.HintSize="418,62" />
      <sap2010:ViewStateData Id="Sequence_2" sap:VirtualizedContainerService.HintSize="440,952">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="UseTemplateFactory.Workflow1_1" sap:VirtualizedContainerService.HintSize="480,1032" />
    </sap2010:ViewStateManager>
  </sap2010:WorkflowViewState.ViewStateManager>
</Activity>